package com.service.impl;

import com.domain.Order;
import com.domain.User;
import com.mapper.Ordermapper;
import com.mapper.Usermapper;
import com.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class OrderImpl  implements OrderService {

    /**
     * @return
     */


    @Autowired
    private Ordermapper ordermapper;


    @Override
    public List<Order> findallorder() {
System.out.println("获取订单");
       return ordermapper.findallorder();

    }
}
